<% form_tag(:action => 'update', :id => params[:id]) do %>
<%= error_messages_for 'picture' %>
 <fieldset style="width: 25em;" >        

    <legend>Edit Picture</legend>        
    
    <p>
      <label for="name">Picture Name</label> <br />
        <%= text_field("picture", "name") %>
    </p>

    <p>
        <label for="description">Short Description</label> <br />
        <%= text_area("picture", "description", :cols => 50, :rows => 5) %>
        <br />
    </p>

    <p>
        
        <%= radio_button("picture", "access", "0") %> Private &nbsp;
        <%= radio_button("picture", "access", "1") %> Protected &nbsp;
        <%= radio_button("picture", "access", "2") %> Public &nbsp;                  
        
    </p>     
       
    <p>
        <input class="submit-button" type="submit" value="Save" />
    </p>
</fieldset>
<% end %>

<%= link_to 'Back', :action => 'show', :id => @picture %>
